import { message } from 'antd';

/**
 * Shows message content with external package feature.
 * [duration] is in second.
 */
export function showSuccess(msg: string, duration: number = 3): void {
  message.success(msg, duration);
}

export function showError(msg: string, duration: number = 3): void {
  message.error(msg, duration);
}

export function showWarning(msg: string, duration: number = 3): void {
  message.warning(msg, duration);
}
